<template>
  <div>
    <h1>{{ msg }}</h1>
    <button @click="btnFn">翻转世界</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "Hello,World",
    };
  },

  methods: {
    btnFn() {
      this.msg = this.msg.split("").reverse().join("");
    },
  },
};
</script>

<style scoped lang="less"></style>
